<script type="text/javascript">
	tinyMCE.init({
		mode : "textareas",
		theme : "simple",
		width : "400",
		height: "200",
	});
</script>
<script type="text/javascript" >
    sttheme.load_tooltip();
    sttheme.on_submitform('#settingForm', function(){
        sttheme.loadPage('contact', '', '<?php _e("Successful", $config['plugin_name']) ?>');
    });
    jQuery('#submit').live('click',function(){
    	jQuery('#branch_contact').html(tinyMCE.get('branch_contact').getContent());
    	jQuery('#office_contact').html(tinyMCE.get('office_contact').getContent());
    	jQuery('#time_contact').html(tinyMCE.get('time_contact').getContent());
    });

</script>
<div class="w100p bgl">
    <div class="w100p bgr p5b">
        <form class="stform" id="settingForm" action="<?php echo admin_url('/admin.php?page=' . $config['theme_name'] . '&action=' . $current_action) ?>" method="post" >
            <br clear="both" />
            <ul>
            	 <li>
                    <label><?php _e('Email Contact', $config['theme_name']) ?>:</label>
                    <div>
                        <input id="email_contact" name="data[email_contact]" type="text" value="<?php echo $option['email_contact'] ?>" />
                    </div>
                    <br clear="both" />
                </li>
                <li>
                    <label><?php _e('Branch Contact', $config['theme_name']) ?>:</label>
                    <div>
                        <textarea id="branch_contact" name="data[branch_contact]" cols="60" rows="60"><?php echo $option['branch_contact'] ?></textarea>
                    </div>
                    <br clear="both" />
                </li>
                <li>
                    <label><?php _e('Time Contact', $config['theme_name']) ?>:</label>
                    <div>
                        <textarea id="time_contact" name="data[time_contact]" cols="60" rows="60"><?php echo $option['time_contact'] ?></textarea>
                    </div>
                    <br clear="both" />
                </li>
                <li>
                    <input id="submit" type="submit" value="Submit"/>
                </li>


            </ul>
        </form>
    </div>
</div>
<style type="text/css">
#stcontainer form.stform ul li div div{
	width: 378px;
}
#stcontainer form.stform ul li div{
	width: 389px;
}
</style>